<template>
  <div>
    <span
      :class="
        cssClasses ? cssClasses.error.icon || undefined : 'panel-error-icon'
      "
      aria-hidden="true"
    ></span>
    <span
      :class="
        cssClasses ? cssClasses.error.item || undefined : 'panel-error-item'
      "
    >
      <SvComponent :is="'survey-string'" :locString="error.locText" />
    </span>
  </div>
</template>

<script lang="ts" setup>
import SvComponent from "@/SvComponent.vue";
import { SurveyError } from "survey-core";
defineProps<{
  error: SurveyError;
  cssClasses: any;
  element: any;
}>();
</script>
